 <html>
 <%@ page import="java.sql.*" %>
 <body bgcolor="#fdfec5">
  	<img src="images/15.jpeg" height=200 width=300 />	<img src="images/11.jpeg" height=200 width=300 /><img src="images/12.jpeg" height=200 width=300 />

<%
try
{
String accno=request.getParameter("accno");
String old=request.getParameter("opin");
String npin=request.getParameter("npin");

  Class.forName("oracle.jdbc.driver.OracleDriver");
   Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","bank","bank");
  Statement st=con.createStatement();
   
 int i=st.executeUpdate("update customer set pin='"+npin+"' where accno='"+accno+"' ");
  if(i>0)
  {
 
  System.out.println("changed");
   %>
   
<div class="wpmd">
<div> <marquee align="left"><font size="4" color="green"><B><a href="logout.jsp"> Password PinChanged Sucessfully</a></B></font></marquee></div><br><a href="Index.html"  style="font-size:20">Home</a>
</div>
<%  }

}
catch(Exception e){
e.printStackTrace();
}

 %>
 
 </body>
</html>